﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows;


namespace NSPresentation
{
    public class CommandService
    {
        protected CommandService()
        {

        }


        static CommandService currentService;

        public static CommandService CurrentService
        {
            get
            {

                if (currentService == null)
                {
                    currentService = new CommandService();

                }

                return CommandService.currentService;

            }

        }



        /// <summary>
        /// 将命令绑定到窗体
        /// </summary>
        /// <param name="window"></param>
        public void BindCommandsToWindow(Window window)
        {

            AppBaseCommandsBinder.BindCommandsToWindow(window);


            GisCommandBinder.BindCommandsToWindow(window);

            NSCoreCommandsBinder.BindCommandsToWindow(window);

            //XnaCommandBinder.BindCommandsToWindow(window);
            //DialogCommandBinder.BindCommandsToWindow(window);








        }


        public void BindKeyToWindow(Window window)
        {


        }

    }
}
